# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.


class GoodsDetail(models.Model):
	goods_id = models.AutoField(primary_key=True)
	goods_name = models.CharField('goods_name',max_length=128)
	goods_price = models.FloatField('goods_price',max_length=28)
	goods_cost = models.FloatField('goods_cost',max_length=28)
	goods_num = models.IntegerField('goods_num')
	sell_num = models.IntegerField('sell_num')
	goods_type = models.CharField('goods_type',max_length=128)
	belong_car = models.CharField('belong_car',max_length=128)
	publish_time = models.CharField('publish_time',max_length=128)
	goods_discount = models.FloatField('goods_discount',max_length=5)
	goods_status = models.IntegerField('goods_status')
	pic_path = models.CharField('pic_path',max_length=512)

class ServiceDetail(models.Model):
	service_id = models.AutoField(primary_key=True)
	service_name = models.CharField('service_name',max_length=128)
	service_type = models.CharField('service_type',max_length=128)
	service_price = models.FloatField('service_price',max_length=28)
	service_status = models.IntegerField('service_status')
	pic_path = models.CharField('pic_path',max_length=512)

class ShoppingCartDetail(models.Model):
	cart_id = models.AutoField(primary_key=True)
	user_id = models.CharField('user_id',max_length=56)
	user_phone = models.CharField('user_phone',max_length=56)
	goods_id = models.IntegerField('goods_id')
	goods_num = models.IntegerField('goods_num')
	goods_price =  models.FloatField('goods_price',max_length=28)
	join_time = models.CharField('join_time',max_length=128)


class UserDetail(models.Model):
	user_id = models.AutoField(primary_key=True)
	user_name = models.CharField('user_name',max_length=56)
	user_Chinese = models.CharField('user_Chinese',max_length=56)




		


